package ext.trace.kernel;

import math.math;

public class KernelCubic implements Kernel
{
    
    private static final double COEFF = 35.0 / 16.0;
    
    
    public KernelCubic()
    {
        
    }
    
    
    public double eval(double aRadius, double aExtent)
    {
        double extTo7 = math.powd(aExtent, 7.0);
        double diffSqs = aExtent * aExtent - aRadius * aRadius;
        double result = COEFF / extTo7 * math.powd(diffSqs, 3.0);
        return result;
    }
    
}
